<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改员工档案')" />
	<th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-notice-edit" th:object="${record}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">
                <label class="col-sm-2 control-label is-required">生日：</label>
                <div class="col-sm-10">
                    <input id="birth" name="birth" th:field="*{birth}" type="text" class="time-input" placeholder="生日" required/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label is-required">学历：</label>
                <div class="col-sm-10">
                    <input id="education" name="education"  th:field="*{education}" class="form-control"  placeholder="学历"type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label is-required">毕业学校：</label>
                <div class="col-sm-10">
                    <input id="graduateSchool" name="graduateSchool" th:field="*{graduateSchool}"  class="form-control"  placeholder="毕业学校"type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label is-required">毕业时间：</label>
                <div class="col-sm-10">
                    <input id="graduateDate" name="graduateDate" th:field="*{graduateDate}"   placeholder="毕业时间" type="text" class="time-input" required/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label is-required">户籍地：</label>
                <div class="col-sm-10">
                    <input id="domicile" name="domicile"  th:field="*{domicile}" class="form-control"  placeholder="户籍地"type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label is-required">政治面貌：</label>
                <div class="col-sm-10">
                    <input id="politicsStatus" name="politicsStatus" th:field="*{politicsStatus}"  class="form-control"  placeholder="政治面貌"type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label ">离职时间：</label>
                <div class="col-sm-10">
                    <input id="leaveDate" name="leaveDate"  th:field="*{leaveDate}"  placeholder="离职时间" type="text" class="time-input" />
                </div>
            </div>
		</form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: summernote-js" />
    <script type="text/javascript">
        var prefix = ctx + "oa/userdoc";
    
	    $(function() {
			var content = $("#content").val();
		    $('#editor').summernote('code', content);
	    });
	    
		$("#form-notice-edit").validate({
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	var sHTML = $('.summernote').summernote('code');
				$("#content").val(sHTML);
				$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
